<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<input type="button" onclick="ssn()" value="确定">
<script>
    function ssn(){
        var n=confirm("你确定要显示吗？");
        if(n){
            document.write("欢迎来到厦门");
        }
    }
</script>
</body>
</html>